<div class="x_panel">
  <div class="x_content" style="display: block;">
    <div class="nav navbar-right panel_toolbox">
      <a class="fa fa-plus" href="/category/add.html">添加</a>
    </div>
    <br><br>
    <!--表格主体内容-->
    <div class="cont">
      <table class="table table-bordered table-striped">
        <thead>
        <tr>
          <th width="100px">分类ID</th>
          <th>分类名称</th>
          <th>排序</th>
          <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {foreach $category.lists as $categoryitem}
        <tr>
          <td>{$categoryitem.category_id}</td>
          <td>{$categoryitem.category_name}</td>
          <td>{$categoryitem.category_sort}</td>
          <td>
            <div class="x_content">
              <a class="btn btn-primary btn-xs" href="{eval U(['category/edit','category_id'=>$categoryitem.category_id])}"> 编辑</a>
              <button class="btn btn-danger btn-xs" data-toggle="dropdown">删除
                <i class="icon-angle-down"></i></button>
              <ul class="dropdown-menu">
                <li><a href="{eval U(['category/delete','category_id'=>$categoryitem.category_id])}">确定</a></li>
                <li><a href="javascript:;">取消</a></li>
              </ul>
            </div>
          </td>
        </tr>
        {/foreach}
        </tbody>
      </table>
      <!--分页-->
      {Yii::$app->view->render('/com/pager.php',['pager'=>$category.pager])}
    </div>
  </div>
</div>
